app.controller('addLineCustomerController', ['$scope','ajax','$state','Flash',function ($scope,ajax,$state,Flash) {
    /*
     * 增加客户
     * parm data 用户数据
     */
    $scope.doLineCustomer = function(data){
        ajax.post({
            url: 'back/customer/add',
            data: data
        }).then(function(result){


            Flash.create('success', data.storeName+'增加成功', 'custom-class');
            $state.go('admin.lineCustomer')
        })
    }

}]);